home *** CD-ROM | disk | FTP | other *** search
- (Z.COM) BAT Commander VII (Co. 1987)
- (A.COM)
-
-
- CASTLEsoft Boston
-
- This program was created 'cause I had dozens of .BAT files.
-
- As you may (or not) know, every file NO MATTER HOW SMALL, takes
-
- 2K on your disk. I took 35 to 40 bat files (taking 70K-80K) and
-
- put them in a SINGLE file less than 1K (still takes up 2K). The
-
- program Z.COM takes 19K, so I've save a lot of space. Now each
-
- file added to Z.FLS doesn't take any more disk space as long as
-
- the whole Z.FLS is less than 2048 bytes. It may seem that
-
- execution of your bat files takes longer with Bat Commander. But
-
- that is because all activity takes place with no on-screen
-
- display. If you type Z followed by a non-existing command, you
-
- will see how fast it goes through your bat list.
-
- The syntax
-
- to execute a file is;
-
- C:>z command
-
- The command MUST be at least 2 characters long. I used EDIT.COM
-
- to create my BAT list Z.FLS. Z.COM looks for Z.FLS on drive C: in
-
- the root DIR. You may have up to 4 commands in each bat file.
-
- The commands in the file list must be the regular way you type
-
- commands. Normally this is lower-case. END must be caps. This
-
- also makes seeing the individual bats easier when the commands
-
- are not in caps. The first line is the command you will enter
-
- after the Z. Lets say you want to change to utility DIR, and
-
- list its contents. I use D4 directory to show 4 columns on a
-
- screen. You may not have d4. It could be SD, SDIR, DD or even use
-
- DIR/W for a wide DIR. So I'll be adding this to my file, after
-
- the last END. 'ut' the command I will use to call the bat.
-
- 'cd\util' to change to UTIL DIR, and 'd4' to list the dir.
-
- END
- ut
- cd\util
- d4
- END
-
- Make sure there are no 'invisible' spaces after the 'calling'
-
- command in your file. If you type a command and it says xx BAT
-
- not found, but it shows on the list when you type Z only, then
-
- you have trailing spaces. Find the command and put your cursor
-
- after the last letter. Press DEL several times and the spaces
-
- should be gone.
-
- You may also call a bat file from a bat file to chain
-
- commands when 4 commands aren't enough. Or start a program
-
- running. In fact, my autoexec.bat calls a bat from Bat Commander.
-
- But do all the calling from 1 bat, not in a series. correct way;
-
- END
- runcom
- z pro
- z ws
- z comm
- z fini
- END
-
- If you call them this way each Z.COM that is called leaves memory
-
- before the next is called. Otherwise they 'stack up'.
-
- You can't use bat 'programming' commands. You also can't call
-
- FLUSH or anything similar from Bat Commander. It will flush Z.COM
-
- and your computer will hang up.
-
- I've added a feature to list your bats. Just type Z with no
-
- arguments and the bats will list. Make the very first line in
-
- Z.FLS, 'END' and leave a few spaces after the last END and then
-
- type, 'end' (lower-case). If you look at the Z.FLS included
-
- you'll see how the list and commands work. Z.COM is (as far as I
-
- know), bug free. If you have a problem it is likely one of two
-
- things. One, that you have typed a command wrong or wrong order
-
- in Z.FLS. Or two, the program being called interferes or
-
- interacts with another.
-
- For some examples of bat commands look at;
-
- newbak
- fixdisk
- sag
- dw
- aa
- mace
- solit
- rr
- pct in the sample Z.FLS.
-
-
-
- Z.COM and Bat Commander are Copywrite by CASTLEsoft Boston.
-
- Z.COM is written in ZBasic and portions of the code are Copywrite
-
- by Zedcor.
-
- If you find this program helpful please send $5 to;
-
- CASTLEsoft
-
- 3 Draper Castle
-
- Dorchester, Mass. 02122
-
-
-
- NOTE; Version 2 (Nov. 2, 1987)
-
- The first version (Oct. 31,1987) had a goblin (bug) that
-
- caused it to go back to C:\ from your subdirectory, unless the
-
- command contained a CD\dirname. If you were in c:\util and got a
-
- dir for B: you'd be in C:\ when you finished. This has been
-
- rectified.
-
-
-
- NOTE; Version 3 (Nov. 8, 1987)
-
- Z.COM is only for hard disks. A.COM is for dual floppies, and
-
- will work on both. The file A.FLS (instead of Z.FLS) must be on
-
- drive A:. If you have a hard drive you can keep A.COM on C:\ and
-
- have several A.FLS on floppies for different applications.
-
-
- NOTE; version 4 (IV);(Nov. 27, 1987)
-
- There is a limit of 150 bats if you wish to list them all when
-
- just the single letter (z or a) is pressed. You may have as many
-
- wish otherwise. More than 150 would scroll off the screen. The list
-
- now lists down in columns instead of across. The version number will
-
- also be shown when Bat Commander is called. And the A: version will
-
- be followed by a. (ie; IVa)
-
- NOTE; version 5 (V);(Dec. 3, 1987)
-
- This version adds sorting to your BAT list. '/s' instead of a
-
- bat name will list the bats, sorted.
-
- C:>z/s
-
-
- NOTE; version 6 (VI);(Dec. 6, 1987)
-
- Now you can have more than one BAT list. I've included the
-
- file D.FLS as a sample. To list D.FLS
-
- C:>z/d
-
- sorted D.FLS
-
- C:>z/d/s
-
- To run a D.FLS bat follow the /d with the BAT name. NO spaces.
-
- C:>z/dut
-
- This runs the 'ut' bat that is in D.FLS. If you make a mistake
-
- with the letter after '/' and it isn't your file you will get a
-
- FILE NOT FOUND ERROR in statement #1.
-
- (c)ont or (s)top.
-
- Press 's' to stop. Then type using the correct letter. Right now
-
- you have Z.FLS and D.FLS (for HD). Any other letter will cause an
-
- error. You may name your .FLS with any letter you wish. Just use
-
- it instead of 'd'.
-
- IMPORTANT; You cannot use 's' as in S.FLS. The 's' is
-
- reserved as the 'sort' command for Z.FLS.
-
-
- NOTE; version 7 (VII)(Dec. 18,1987)
-